package com.chennan.pattern.adapter.demo.passport.adapterimpl;

import com.chennan.pattern.adapter.demo.passport.IloginAdapter;
import com.chennan.pattern.adapter.demo.passport.ResultMsg;

/**
 * @author chennan
 * @create 2021-09
 */
public class LoginForQQAdapter extends AbstraceAdapter {


    @Override
    public boolean support(Object object) {
        return object instanceof LoginForQQAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {
        return super.loginForRegist(id,null);
    }
}
